package com.tulele.vtool.mapper;

import com.tulele.vtool.model.NewLookArticleCountInfo;
import com.tulele.vtool.model.combinedEntity.CurDayNewLookStatisInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component(value = "newLookArticleCountInfoMapper")
public interface NewLookArticleCountInfoMapper {

    /**
     * 查询新查看文章的信息
     * @param newLookArticleCountInfo
     * @return
     */
    NewLookArticleCountInfo queryNewLookArticleInfo(NewLookArticleCountInfo newLookArticleCountInfo);

    /**
     * 增加新查看文章的信息
     * @param newLookArticleCountInfo
     * @return
     */
    int addNewLookArticleInfo(NewLookArticleCountInfo newLookArticleCountInfo);

    /**
     * 更新新查看文章的信息
     * @param newLookArticleCountInfo
     * @return
     */
    int updateNewLookArticleInfo(NewLookArticleCountInfo newLookArticleCountInfo);

    /**
     * 清空用户新查看文章的次数信息
     * @param newLookArticleCountInfo
     * @return
     */
    int updateUserNewLookArticleInfo(NewLookArticleCountInfo newLookArticleCountInfo);

    /**
     * 查看用户当天新查看文章统计信息
     * @param otherUserId
     * @return
     */
    CurDayNewLookStatisInfo queryCurDayNewLookStatisInfo(@Param("otherUserId")Integer otherUserId);
}